package WeekTest01;

public class Book {

	private int no;
	private String name;
	private int price;
	
	public Book() {
		
	}
	public Book(int no,String name,int price) {
		this.no = no;
		this.name = name;
		this.price = price;
	}
	
	public int getNo() {
		return no;
	}
	public void setNo(int no) {
		this.no = no;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	
	public void toSting(int no,String name,int price) {
		System.out.println("编号"+no);
		System.out.println("书名"+name);
		System.out.println("价格"+price+"元");
	}
}
